ELOGDIR := $(TOP)/PLAT/project/$(TARGET)/$(CORE)/apps/application/app/easylogger

CFLAGS_INC += -I $(ELOGDIR)/inc

ELOG_SRC_DIRS += $(ELOGDIR)


ELOG_EXCLUDE_FILES :=                                   

ELOG_CSRC = $(foreach dir, $(ELOG_SRC_DIRS)/src, $(wildcard $(dir)/*.c))
ELOG_CSRC += $(foreach dir, $(ELOG_SRC_DIRS)/port, $(wildcard $(dir)/*.c))
ELOG_CFILES = $(filter-out $(ELOG_EXCLUDE_FILES), $(ELOG_CSRC))
ELOG_COBJSTEMP := $(patsubst %.c, %.o, $(ELOG_CFILES))

ELOG_COBJS := $(addprefix $(BUILDDIR)/, $(ELOG_COBJSTEMP))
ELOG_PPFILES := $(patsubst %.o, %.pp, $(ELOG_COBJS))
PPFILES += $(ELOG_PPFILES)

ifneq ($(MAKECMDGOALS), unilog)
-include $(ELOG_COBJS:.o=.d)
endif
-include $(ELOG_COBJS:.o=.dd)

lib-y += libelog.a
$(BUILDDIR)/lib/libelog.a: $(ELOG_COBJS)
	@mkdir -p $(dir $@)
	$(ECHO) AR $@
	$(Q)$(AR) -cr $@ $^